package com.ks.app.admin.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * KsProvinceInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "KS_PROVINCE_INFO")
public class KsProvinceInfo implements java.io.Serializable {

	
	private static final long serialVersionUID = -1152651558132580596L;
	// Fields

	private long PId;//主键ID
	private String provincename;//省份名称
	private String provincenamepy;//省份拼音首字母

	// Constructors

	/** default constructor */
	public KsProvinceInfo() {
	}

	/** full constructor */
	public KsProvinceInfo(long PId, String provincename, String provincenamepy) {
		this.PId = PId;
		this.provincename = provincename;
		this.provincenamepy = provincenamepy;
	}

	// Property accessors
	@Id
	@Column(name = "P_ID", unique = true, nullable = false, precision = 22, scale = 0)
	public long getPId() {
		return this.PId;
	}

	public void setPId(long PId) {
		this.PId = PId;
	}

	@Column(name = "PROVINCENAME", nullable = false, length = 20)
	public String getProvincename() {
		return this.provincename;
	}

	public void setProvincename(String provincename) {
		this.provincename = provincename;
	}

	@Column(name = "PROVINCENAMEPY", nullable = false, length = 50)
	public String getProvincenamepy() {
		return this.provincenamepy;
	}

	public void setProvincenamepy(String provincenamepy) {
		this.provincenamepy = provincenamepy;
	}

}